package com.ustadzmenjawab.crawler;

public abstract class CrawlerRoot implements Crawler {

	protected CrawlerDB db;
	
	public CrawlerRoot(){
		db = new CrawlerDB();
	}
	
	@Override
	public boolean isUrlExist(String url){
		return db.isURLExist(url);
	}
	@Override
	public void insertFailure(String url, String msg){
		db.insertFailure(url, msg);
	}
	
	public boolean isTitleExist(String title, String source){
		return db.isTitleExist(title, source);
	}

}
